function plot_polygon_line(listpts,linecolor,linewidth)
%UNTITLED2 Summary of this function goes here
%   Detailed explanation goes here

listpts=[listpts;listpts(1,:)];

for indh=1:(size(listpts,1)-1)
    pt1=listpts(indh,:);
    pt2=listpts(indh+1,:);
    line([pt1(1),pt2(1)],[pt1(2),pt2(2)],[pt1(3),pt2(3)],'Color',linecolor,'LineWidth',linewidth)

end